<?php
/* @var $this TermsController */
/* @var $model Terms */

$this->breadcrumbs=array(
	'Terms'=>ApplicationConfig::getURL("user", "terms", "admin",array('id'=>$_GET['id'])),
	'Create',
);

 // $this->widget('bootstrap.widgets.TbMenu', array(
    // 'type'=>'tabs', // '', 'tabs', 'pills' (or 'list')
    // 'stacked'=>true, // whether this is a stacked menu
	// 'htmlOptions'=>array('style'=>'width:25%'),
    // 'items'=>array(
 	// array('label'=>'Create Term', 'url'=>ApplicationConfig::getURL("user", "terms", "create",array('id'=>$_GET['id']))),
    // array('label'=>'List Terms', 'url'=>ApplicationConfig::getURL("user", "terms", "admin",array('id'=>$_GET['id']))),
   
 // ),
// )); 


$this->menu=array(
	// array('label'=>'List EpisodeDetails','url'=>array('index')),
	array('label'=>'Create Term','url'=>ApplicationConfig::getURL("user", "terms", "create",array('id'=>$_GET['id']))),
	array('label'=>'List Terms','url'=>ApplicationConfig::getURL("user", "terms", "admin",array('id'=>$_GET['id']))),
	array('label'=>'Manage Category','url'=>ApplicationConfig::getURL("", "categories", "admin",array())),
	);
?>
<?php 
if (!empty($_GET['id']))
{
	$categoryObj = Categories::model()->getModel("CATEGORY-ID",array('categoryID'=>$_GET['id']));
	$categoryName = $categoryObj->category_name;
}
else 
$categoryName = "";

?>
<h3>Create Terms - <?php echo $categoryName;?></h3>

<?php echo $this->renderPartial('_form', array('model'=>$model,'categoryID'=>$_GET['id'])); ?>